
package com.qianxun.module.datasource1.admin.mapper;

import com.qianxun.module.datasource1.admin.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author: admin
* @date: 2019-11-14
* @version: 1.0.0
*/
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 通过用户id查询用户的所有角色信息
     * @param userId
     * @return
     */
    List<String> selectRoleNameByUserId(@Param("userId") Long userId);
}
